package com.Brewing.springboot.entity.TpVideosEye;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TpVideosEyeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public TpVideosEyeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdIsNull() {
            addCriterion("categories_id is null");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdIsNotNull() {
            addCriterion("categories_id is not null");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdEqualTo(String value) {
            addCriterion("categories_id =", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdNotEqualTo(String value) {
            addCriterion("categories_id <>", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdGreaterThan(String value) {
            addCriterion("categories_id >", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdGreaterThanOrEqualTo(String value) {
            addCriterion("categories_id >=", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdLessThan(String value) {
            addCriterion("categories_id <", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdLessThanOrEqualTo(String value) {
            addCriterion("categories_id <=", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdLike(String value) {
            addCriterion("categories_id like", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdNotLike(String value) {
            addCriterion("categories_id not like", value, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdIn(List<String> values) {
            addCriterion("categories_id in", values, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdNotIn(List<String> values) {
            addCriterion("categories_id not in", values, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdBetween(String value1, String value2) {
            addCriterion("categories_id between", value1, value2, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andCategoriesIdNotBetween(String value1, String value2) {
            addCriterion("categories_id not between", value1, value2, "categoriesId");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDurationIsNull() {
            addCriterion("duration is null");
            return (Criteria) this;
        }

        public Criteria andDurationIsNotNull() {
            addCriterion("duration is not null");
            return (Criteria) this;
        }

        public Criteria andDurationEqualTo(Integer value) {
            addCriterion("duration =", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotEqualTo(Integer value) {
            addCriterion("duration <>", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThan(Integer value) {
            addCriterion("duration >", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("duration >=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThan(Integer value) {
            addCriterion("duration <", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThanOrEqualTo(Integer value) {
            addCriterion("duration <=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationIn(List<Integer> values) {
            addCriterion("duration in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotIn(List<Integer> values) {
            addCriterion("duration not in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationBetween(Integer value1, Integer value2) {
            addCriterion("duration between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("duration not between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andPlayurlIsNull() {
            addCriterion("playUrl is null");
            return (Criteria) this;
        }

        public Criteria andPlayurlIsNotNull() {
            addCriterion("playUrl is not null");
            return (Criteria) this;
        }

        public Criteria andPlayurlEqualTo(String value) {
            addCriterion("playUrl =", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlNotEqualTo(String value) {
            addCriterion("playUrl <>", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlGreaterThan(String value) {
            addCriterion("playUrl >", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlGreaterThanOrEqualTo(String value) {
            addCriterion("playUrl >=", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlLessThan(String value) {
            addCriterion("playUrl <", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlLessThanOrEqualTo(String value) {
            addCriterion("playUrl <=", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlLike(String value) {
            addCriterion("playUrl like", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlNotLike(String value) {
            addCriterion("playUrl not like", value, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlIn(List<String> values) {
            addCriterion("playUrl in", values, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlNotIn(List<String> values) {
            addCriterion("playUrl not in", values, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlBetween(String value1, String value2) {
            addCriterion("playUrl between", value1, value2, "playurl");
            return (Criteria) this;
        }

        public Criteria andPlayurlNotBetween(String value1, String value2) {
            addCriterion("playUrl not between", value1, value2, "playurl");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorIsNull() {
            addCriterion("descriptionEditor is null");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorIsNotNull() {
            addCriterion("descriptionEditor is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorEqualTo(String value) {
            addCriterion("descriptionEditor =", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorNotEqualTo(String value) {
            addCriterion("descriptionEditor <>", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorGreaterThan(String value) {
            addCriterion("descriptionEditor >", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorGreaterThanOrEqualTo(String value) {
            addCriterion("descriptionEditor >=", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorLessThan(String value) {
            addCriterion("descriptionEditor <", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorLessThanOrEqualTo(String value) {
            addCriterion("descriptionEditor <=", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorLike(String value) {
            addCriterion("descriptionEditor like", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorNotLike(String value) {
            addCriterion("descriptionEditor not like", value, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorIn(List<String> values) {
            addCriterion("descriptionEditor in", values, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorNotIn(List<String> values) {
            addCriterion("descriptionEditor not in", values, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorBetween(String value1, String value2) {
            addCriterion("descriptionEditor between", value1, value2, "descriptioneditor");
            return (Criteria) this;
        }

        public Criteria andDescriptioneditorNotBetween(String value1, String value2) {
            addCriterion("descriptionEditor not between", value1, value2, "descriptioneditor");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}